<?
   require("../configuracion.php");
   $idSysSection = $sectionRepOperacion;
   require("../application-top.php");
?>

<html>
<head>
  <title><?= $instanciaECRM ?></title>
  <link rel="stylesheet" href="../styles/style.css" type="text/css">

<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
	<!-- Scrip para el despliege del calendario -->
	<script type="text/javascript" src="CalendarPopup.js"></script>
	<!-- This prints out the default stylehseets used by the DIV style calendar. Only needed if you are using the DIV style popup -->
	<SCRIPT LANGUAGE="JavaScript">document.write(getCalendarStyles());</SCRIPT>
<script language="JavaScript" type="text/JavaScript">
function checkform()
{
	if (document.forms[0].fechainicio.value == '') {
		alert("Por favor, introduzca una fecha inicio, para generar el reporte!")
		return false;
	}

	if (document.forms[0].fechafin.value == '') {
		alert("Por favor, introduzca una fecha final, para generar el reporte!")
		return false;
	}

	return true;
}
</script>



</head>

<body leftmargin="0" class="mainBackground" topmargin="0" marginwidth="0" marginheight="0">
<form action="exportXLS.php" method="post" name="wk" onSubmit="return checkform()">
<table width="100" border="0" cellpadding="0" cellspacing="0">
  <tr><td><img src="../images/headerBar.gif" width="590" height="60" alt=""></td></tr>
  <tr>
    <td><table width="800" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td bgcolor="#FFFFFF" valign="top" height="400">

<table border="0" cellpadding="5" cellspacing="0" width="750">
  <tr><td colspan="2"><table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr><td colspan="2"><img src="../images/spacer.gif" height="10" width="1" alt=""></td></tr><tr>
                        <td><strong class="pageTitle">Reportes</strong><br><strong class="pageSubtitle">Reportes Operaci&oacute;n</strong></td>
	<td align="right"><a href="http://www.cacto.com/" target="_blank"><img src="../images/trademarkCacto.gif" alt="Cacto" border="0"></a><br><strong class="systemtitle"><?= $instanciaECRM ?></strong><br>Perfil <strong><?= $PerfilUsuario ?></td></tr>
  </table></td></tr>
  <tr>
  <td valign="top" width="100%">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr><td colspan="2">
        <table border="0" cellpadding="5" cellspacing="1" class="mainTableBG">
          <tr class="answerCellBG">
            <td><img src="../images/icArrowGo.gif" height="13" width="13" alt=""></td>
            <td><a href="javascript:history.back();" target="content">Regresar</a></td>
          </tr>
        </table>
      </td></tr>
      <tr><td colspan="2"><img src="../images/spacer.gif" height="10" width="1" alt=""></td></tr>
      <tr><td>
<!-- INICIO CUERPO DEL REPORTE -->	  
	  <br>
	  <strong class="pageSubtitle">Reporte de Welcome Kit <?= $eCRMprogram ?></strong><br>
	  <font color="#999999"><?=$Audiencias1?> para env&iacute;o de Welcome Kit.</font>
	  <br>
	  <br>
  
				<script type="text/javascript">
					var now = new Date('11/30/2003');
					var cal17 = new CalendarPopup("calendardiv_inicio");
					cal17.addDisabledDates(null,formatDate(now,"yyyy-MM-dd"));
					cal17.setWeekStartDay(1);
					var cal18 = new CalendarPopup("calendardiv_fin");
					cal18.addDisabledDates(null,formatDate(now,"yyyy-MM-dd"));
					cal18.setWeekStartDay(1);
				</script>
											
		<table  border='0' cellpadding='5' cellspacing='1' class='secTableBG'>
			  <tr>
				<td colspan="2" class="secTableTitle">
				Reporte para env&iacute;o de Welcome Kit al programa <?= $eCRMprogram ?>.
				</td>
			  </tr>
			  <tr class='conceptCellBG'>
				<td colspan="2">Seleccione rango de fechas de inscripci&oacute;n al programa.<input name="tipo" type="hidden" value="welcomekit">
				</td>
			  </tr>
			  <tr class='conceptCellBG'>
				<td>Fecha Inicio:</td>
				<td class='answerCellBG'><input name="fechainicio" type="text" value="" readonly="TRUE"><a href="#" onClick="cal17.select(document.forms[0].fechainicio,'anchor17','dd/MM/yyyy'); return false;" name="anchor17" id="anchor17">&nbsp;<img src="../images/icPopUpCalendar.gif" height="16" width="16" alt="" border="0"></a><br><div id="calendardiv_inicio" style="visibility: hidden; background-color: white; layer-background-color: white; position: absolute;"></div>
				</td>
			  </tr>
			  <tr class='conceptCellBG'>
				<td>Fecha Fin:</td>
				<td class='answerCellBG'><input name="fechafin" type="text" value="" readonly="TRUE"><a href="#" onClick="cal18.select(document.forms[0].fechafin,'anchor18','dd/MM/yyyy'); return false;" name="anchor18" id="anchor18">&nbsp;<img src="../images/icPopUpCalendar.gif" height="16" width="16" alt="" border="0"></a><br><div id="calendardiv_fin" style="visibility: hidden; background-color: white; layer-background-color: white; position: absolute;"></div></td>
			  </tr>
			  <tr  class='answerCellBG'>
				<td colspan="2" align="center"><input name="enviar" type="submit" value="Generar Reporte"></td>
			  </tr>
			</table>
		<br>

<!-- FIN CUERPO DEL REPORTE -->	  
      </td></tr>
    </table>
  </td>
  </tr>
</table>
		  
          </td>
        </tr>
      </table></td>
  </tr>
</table>
</form>
<br>
<br>
<br>
<table width="750" border="0">
  <tr>
    <td align="right"><span class="copyright"><?= $copyright ?></span></td>
  </tr>
</table>
</body>
</html>
